package com.cy.pj.module.controller;

import com.cy.pj.common.pojo.ResponseResult;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class test {
    @RequestMapping("/doComputer/{n3}/{n4}")
    public Object doCompute(@PathVariable Integer n3, @PathVariable Integer n4){
        Integer result=n3/n4;
       ResponseResult r= new ResponseResult(""+result);
       r.setData(result);
       return  r;
    }
}
